package com.bindapp.model;

import android.app.Activity;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;

import com.bindapp.R;
import com.bindapp.databinding.ActivityDevicesteptwoBinding;

public class DeviceStepTwoModel extends BaseModel {
    private ActivityDevicesteptwoBinding binding;
    public DeviceStepTwoModel(final Context context){
        super(context);
        binding= DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.activity_devicesteptwo,null,false);
        binding.toolbar.setSubtitle("");
        binding.toolbar.setTitle("");
        binding.titleview.setText("初始化设置");
        binding.toolbar.setTitleTextColor(ContextCompat.getColor(context,R.color.white));
        binding.toolbar.setNavigationOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View callbackArg_0) {
                ((Activity)context).finish();
            }
        });
    }


    @Override
    public ActivityDevicesteptwoBinding getBinding() {
        return binding;
    }
}
